﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Library.Core.Domain.Repository
{
    /// <summary>
    /// 分页数据集合
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class PageData<T>
    {
        public PageData() {
            Rows = new List<T>();
        }

        /// <summary>
        /// 总记录数
        /// </summary>
        public int Total { get; set; }

        /// <summary>
        /// 当前页数
        /// </summary>
        public int Page { get; set; }

        /// <summary>
        /// 每页大小
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 当前页数据集合
        /// </summary>
        public List<T> Rows { get; set; }

      
    }
}
